<?php

namespace Myth\Data;

class Pagination
{
    protected $_page;
    protected $_itemsPerPage;
    protected $_queryObject;
    
    public function setPage($page)
    {
        $this->_page = (int)$page;
        return $this;
    }
    
    public function getPage()
    {
        return $this->_page;
    }
    
    public function setItemsPerPage($count)
    {
        $this->_itemsPerPage = (int)$count;
        return $this;
    }
    
    public function getItemsPerPage()
    {
        return $this->_itemsPerPage;
    }
    
    /**
     * @param Zend\Db\Select $select
     */
    public function setQueryObject(Zend\Db\Select $select)
    {
        $this->_queryObject = $select;
    }
    
    /**
     * @return Zend\Db\Select $select
     */
    public function getQueryObject()
    {
        return $this->_queryObject;
    }
}